import jwt from 'koa-jwt'
import config from '@test/config'

export default () => {
    return jwt({ secret: config.jwt.secret })
        .unless({
            path: [
                /^\/api\/login/,
            ]
        })
}
